Automate with Grunt (for james tumino) by Brian P. Hogan

Automate with Grunt (for james tumino) by Brian P. Hogan

Author:Brian P. Hogan
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 9781941222119
Publisher: The Pragmatic Bookshelf, LLC (480851)


​ $ ​bower install angular-sanitize​

​ $ ​bower install markdown​​#0.6.0-beta1​

We need to build the client-side version of the Markdown library so we can use it in our web application, and we can do that easily thanks to a Grunt task distributed with the library. Execute the following commands:

​ $ ​cd bower_components/markdown​

​ $ ​npm install​

​ $ ​cd ../../​

Running the npm install command inside of the project installs the projects’ dependencies and then runs a Grunt task that builds the distributions for the project. The JavaScript file we need is now located in the bower_components/markdown/dist folder.

If you’re unable to download the libraries using Bower, you can find everything you need in the workflows folder of the book’s downloadable source code, along with this completed project.

Now let’s look at the application code itself.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.